package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据交换组对象 datax_end_group
 * 
 * @author ruoyi
 * @date 2022-10-04
 */
public class DataxEndGroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 平台端 */
    @Excel(name = "平台端")
    private Long endPlatform;

    /** 对接端 */
    @Excel(name = "对接端")
    private Long endClient;

    /** 运行状态，1：停止；2：正常运行；3：运行异常 */
    @Excel(name = "运行状态，1：停止；2：正常运行；3：运行异常")
    private Integer status;

    /** 最后一次正常运行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后一次正常运行时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastOkTime;

    /** 最后一次异常日志 */
    @Excel(name = "最后一次异常日志")
    private String lastErrLog;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEndPlatform(Long endPlatform) 
    {
        this.endPlatform = endPlatform;
    }

    public Long getEndPlatform() 
    {
        return endPlatform;
    }
    public void setEndClient(Long endClient) 
    {
        this.endClient = endClient;
    }

    public Long getEndClient() 
    {
        return endClient;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setLastOkTime(Date lastOkTime) 
    {
        this.lastOkTime = lastOkTime;
    }

    public Date getLastOkTime() 
    {
        return lastOkTime;
    }
    public void setLastErrLog(String lastErrLog) 
    {
        this.lastErrLog = lastErrLog;
    }

    public String getLastErrLog() 
    {
        return lastErrLog;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("endPlatform", getEndPlatform())
            .append("endClient", getEndClient())
            .append("status", getStatus())
            .append("lastOkTime", getLastOkTime())
            .append("lastErrLog", getLastErrLog())
            .toString();
    }
}
